
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>用户端下载</title>
	<script src="../js/jquery.min.js"></script>
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,height=device-height">
	<link rel="stylesheet" href="../css/index2.css">
<body>
	<div class="mask hide">
		<div class="tip"><img src="../image/tip.png"> </div>
	</div>
	<div class="container">
		<div class="main" style="position:relative;">
		</div>
	</div>
	<script type="text/javascript" src="../js/md5.js"></script>
	<script type="text/javascript" src="../js/config.js"></script>
	<script>
		$(function(){
			function is_weixn(){
				var ua = navigator.userAgent.toLowerCase();
				if(ua.match(/MicroMessenger/i)=="micromessenger") {
					return true;
				} else {
					return false;
				}
			}
			
			var channel_id = getUrlParam('channelId')
		    if(channel_id.trim().length>=0){
		     	var str = '<a style="position:absolute;top:300px;" href="http://onat9tcj8.bkt.clouddn.com/zhaoqianhua_zhaoqianhua'+channel_id+'_114_1.1.4_17-8-5.apk" target="_top" class="download">点击下载</a>';
		    	$('.main').html(str);
		    	var channel = 'zhaoqianhua'+channel_id;
		        var post_data = {'channel_id':channel, 'qudao':true};
		        $.post(CONFIG.API_URL+"/Home/UserCenter/qudaoChannel", post_data);
		    }
	
			$(".download").on("click", function(e){
				var inWeiXin = is_weixn();
				if (inWeiXin) {
					$(".mask").height($("body").height()).show();
					return false;
				}
				return true;
			});
		});
	</script>
	
</div>
</div>
</body>
</html>
